<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <div class="btn" @click="report">报错测试</div>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  setup(){
    const abc = 1;
    const report = ()=>{
      alert(abc.abc);
    }
    return {
      report
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
.btn {
  color: #42b983;
}
</style>
